package com.blacktry.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blacktry.entity.model.FillQuestion;
import com.blacktry.entity.model.JudgeQuestion;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 判断题题库表 服务类
 * </p>
 *
 * @author blackTry
 * @since 2021-08-10
 */
public interface JudgeQuestionService extends IService<JudgeQuestion> {
    int insert(JudgeQuestion judgeQuestion);

    Integer delete(Integer id);

    Integer deleteBatchIds(String[] ids);

    Integer updateOrInsert(JudgeQuestion judgeQuestion);

    JudgeQuestion select(Integer id);

    List<JudgeQuestion> selectAll();

    Page<JudgeQuestion> selectPage(JudgeQuestion judgeQuestion, Page<JudgeQuestion> judgeQuestionPage);

    List<JudgeQuestion> findByIdAndType(Integer paperId);
}
